package com.link2room.optimus.dto.result.base;

import com.link2room.common.annotation.L2RDatetimeString;
import com.link2room.common.dto.result.base.BaseDto;
import com.link2room.common.util.DateUtil;

import java.util.Date;

/**
 * Created by sss on 2016/9/2.
 */
public class MarketingNorsvDto extends BaseDto {
    /**
     * 活动代码
     */
    private String mcCode;
    /**
     * 不可预订开始日期
     */
    private Date noRsvStartDate;
    /**
     * 不可预订结束日期
     */
    private Date noRsvEndDate;
    /**
     * 不可预订开始时间
     */
    @L2RDatetimeString(source = "noRsvStartDate")
    private String noRsvStartDatetime;
    /**
     * 不可预订结束时间
     */
    @L2RDatetimeString(source = "noRsvEndDate")
    private String noRsvEndDatetime;

    public String getMcCode() {
        return mcCode;
    }

    public void setMcCode(String mcCode) {
        this.mcCode = mcCode;
    }

    public Date getNoRsvStartDate() {
        return noRsvStartDate;
    }

    public void setNoRsvStartDate(Date noRsvStartDate) {
        this.noRsvStartDate = noRsvStartDate;
    }

    public Date getNoRsvEndDate() {
        return noRsvEndDate;
    }

    public void setNoRsvEndDate(Date noRsvEndDate) {
        this.noRsvEndDate = noRsvEndDate;
    }

    public String getNoRsvStartDatetime() {
        return noRsvStartDatetime;
    }

    public void setNoRsvStartDatetime(String noRsvStartDatetime) {
        this.noRsvStartDatetime = noRsvStartDatetime;
        setNoRsvStartDate(DateUtil.parseDateNewFormat(noRsvStartDatetime));
    }

    public String getNoRsvEndDatetime() {
        return noRsvEndDatetime;
    }

    public void setNoRsvEndDatetime(String noRsvEndDatetime) {
        this.noRsvEndDatetime = noRsvEndDatetime;
        setNoRsvEndDate(DateUtil.parseDateNewFormat(noRsvEndDatetime));
    }
}
